Optimal. Leaf size=256 \[ -\frac{i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}-\frac{i \log \left (\frac{\sqrt{a-i a x}}{\sqrt{a+i a x}}-\frac{\sqrt{2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}+1\right )}{2 \sqrt{2}}+\frac{i \log \left (\frac{\sqrt{a-i a x}}{\sqrt{a+i a x}}+\frac{\sqrt{2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}+1\right )}{2 \sqrt{2}}-\frac{i \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{\sqrt{2}}+\frac{i \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{\sqrt{2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.172916, antiderivative size = 256, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 9, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.36, Rules used = {50, 63, 240, 211, 1165, 628, 1162, 617, 204} \[ -\frac{i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}-\frac{i \log \left (\frac{\sqrt{a-i a x}}{\sqrt{a+i a x}}-\frac{\sqrt{2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}+1\right )}{2 \sqrt{2}}+\frac{i \log \left (\frac{\sqrt{a-i a x}}{\sqrt{a+i a x}}+\frac{\sqrt{2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}+1\right )}{2 \sqrt{2}}-\frac{i \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{\sqrt{2}}+\frac{i \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{\sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 50
Rule 63
Rule 240
Rule 211
Rule 1165
Rule 628
Rule 1162
Rule 617
Rule 204
Rubi steps
\begin{align*} \int \frac{\sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}} \, dx &=-\frac{i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}+\frac{1}{2} a \int \frac{1}{(a-i a x)^{3/4} \sqrt [4]{a+i a x}} \, dx\\ &=-\frac{i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}+2 i \operatorname{Subst}\left (\int \frac{1}{\sqrt [4]{2 a-x^4}} \, dx,x,\sqrt [4]{a-i a x}\right )\\ &=-\frac{i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}+2 i \operatorname{Subst}\left (\int \frac{1}{1+x^4} \, dx,x,\frac{\sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )\\ &=-\frac{i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}+i \operatorname{Subst}\left (\int \frac{1-x^2}{1+x^4} \, dx,x,\frac{\sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )+i \operatorname{Subst}\left (\int \frac{1+x^2}{1+x^4} \, dx,x,\frac{\sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )\\ &=-\frac{i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}+\frac{1}{2} i \operatorname{Subst}\left (\int \frac{1}{1-\sqrt{2} x+x^2} \, dx,x,\frac{\sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )+\frac{1}{2} i \operatorname{Subst}\left (\int \frac{1}{1+\sqrt{2} x+x^2} \, dx,x,\frac{\sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )-\frac{i \operatorname{Subst}\left (\int \frac{\sqrt{2}+2 x}{-1-\sqrt{2} x-x^2} \, dx,x,\frac{\sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{2 \sqrt{2}}-\frac{i \operatorname{Subst}\left (\int \frac{\sqrt{2}-2 x}{-1+\sqrt{2} x-x^2} \, dx,x,\frac{\sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{2 \sqrt{2}}\\ &=-\frac{i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}-\frac{i \log \left (1+\frac{\sqrt{a-i a x}}{\sqrt{a+i a x}}-\frac{\sqrt{2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{2 \sqrt{2}}+\frac{i \log \left (1+\frac{\sqrt{a-i a x}}{\sqrt{a+i a x}}+\frac{\sqrt{2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{2 \sqrt{2}}+\frac{i \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\frac{\sqrt{2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{\sqrt{2}}-\frac{i \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\frac{\sqrt{2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{\sqrt{2}}\\ &=-\frac{i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}-\frac{i \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{\sqrt{2}}+\frac{i \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{\sqrt{2}}-\frac{i \log \left (1+\frac{\sqrt{a-i a x}}{\sqrt{a+i a x}}-\frac{\sqrt{2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{2 \sqrt{2}}+\frac{i \log \left (1+\frac{\sqrt{a-i a x}}{\sqrt{a+i a x}}+\frac{\sqrt{2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{2 \sqrt{2}}\\ \end{align*}
Mathematica [C] time = 0.0208058, size = 70, normalized size = 0.27 \[ \frac{2 i 2^{3/4} \sqrt [4]{1+i x} (a-i a x)^{5/4} \, _2F_1\left (\frac{1}{4},\frac{5}{4};\frac{9}{4};\frac{1}{2}-\frac{i x}{2}\right )}{5 a \sqrt [4]{a+i a x}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.049, size = 0, normalized size = 0. \begin{align*} \int{\sqrt [4]{a-iax}{\frac{1}{\sqrt [4]{a+iax}}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (-i \, a x + a\right )}^{\frac{1}{4}}}{{\left (i \, a x + a\right )}^{\frac{1}{4}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.67944, size = 540, normalized size = 2.11 \begin{align*} \frac{\sqrt{i} a \log \left (\frac{\sqrt{i}{\left (a x - i \, a\right )} +{\left (i \, a x + a\right )}^{\frac{3}{4}}{\left (-i \, a x + a\right )}^{\frac{1}{4}}}{x - i}\right ) - \sqrt{i} a \log \left (-\frac{\sqrt{i}{\left (a x - i \, a\right )} -{\left (i \, a x + a\right )}^{\frac{3}{4}}{\left (-i \, a x + a\right )}^{\frac{1}{4}}}{x - i}\right ) + \sqrt{-i} a \log \left (\frac{\sqrt{-i}{\left (a x - i \, a\right )} +{\left (i \, a x + a\right )}^{\frac{3}{4}}{\left (-i \, a x + a\right )}^{\frac{1}{4}}}{x - i}\right ) - \sqrt{-i} a \log \left (-\frac{\sqrt{-i}{\left (a x - i \, a\right )} -{\left (i \, a x + a\right )}^{\frac{3}{4}}{\left (-i \, a x + a\right )}^{\frac{1}{4}}}{x - i}\right ) - 2 i \,{\left (i \, a x + a\right )}^{\frac{3}{4}}{\left (-i \, a x + a\right )}^{\frac{1}{4}}}{2 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt [4]{- a \left (i x - 1\right )}}{\sqrt [4]{a \left (i x + 1\right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.25306, size = 252, normalized size = 0.98 \begin{align*} \frac{1}{2} i \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (\sqrt{2} + \frac{2 \,{\left (-i \, a x + a\right )}^{\frac{1}{4}}}{{\left (i \, a x + a\right )}^{\frac{1}{4}}}\right )}\right ) + \frac{1}{2} i \, \sqrt{2} \arctan \left (-\frac{1}{2} \, \sqrt{2}{\left (\sqrt{2} - \frac{2 \,{\left (-i \, a x + a\right )}^{\frac{1}{4}}}{{\left (i \, a x + a\right )}^{\frac{1}{4}}}\right )}\right ) + \frac{1}{4} i \, \sqrt{2} \log \left (\frac{\sqrt{2}{\left (-i \, a x + a\right )}^{\frac{1}{4}}}{{\left (i \, a x + a\right )}^{\frac{1}{4}}} + \frac{\sqrt{-i \, a x + a}}{\sqrt{i \, a x + a}} + 1\right ) - \frac{1}{4} i \, \sqrt{2} \log \left (-\frac{\sqrt{2}{\left (-i \, a x + a\right )}^{\frac{1}{4}}}{{\left (i \, a x + a\right )}^{\frac{1}{4}}} + \frac{\sqrt{-i \, a x + a}}{\sqrt{i \, a x + a}} + 1\right ) + \frac{i \,{\left (-i \, a x + a\right )}^{\frac{1}{4}}{\left (-i \, a x - a\right )}}{{\left (i \, a x + a\right )}^{\frac{1}{4}} a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]